﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LPY.LeHealth.DAL;
using LPY.LeHealth.DTO;

namespace LPY.LeHealth.Service
{
    public class TuanOrderService
    {
        TuanOrderDal dal = new TuanOrderDal();
        /// <summary>
        /// 显示前5条团检表信息
        /// </summary>
        /// <param name="num"></param>
        /// <returns></returns>
        public List<TuanOrderDTO> GetTuanOrder(int hid)
        {
            return dal.GetTuanOrder(5,hid);
        }

         /// <summary>
        /// 根据Id修改团检订单状态
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool UpdTuanOrderById(int id, int state)
        {

            return dal.UpdTuanOrderById(id,state);
        }
    }
}
